package com.yu.waterstation.system.modules.app.service;

import com.yu.waterstation.common.common.exception.ServiceException;
import com.yu.waterstation.common.entity.app.Worker;

import java.util.List;

/**
 *
 *
 * date 2020-12-02 18:16:20
 */
public interface WorkerService {

    /**
     * 查询所有
     */
    List<Worker> getAllWorkers() throws ServiceException;

    /**
     * 增加
     *
     * @param worker
     */
    int addWorker(Worker worker)throws Exception;

    /**
     * 批量删除
     *
     * @param workerIdList
     */
    int deleteWorkerBatchIds(List<Integer> workerIdList) throws ServiceException;

    /**
     * 修改
     *
     * @param worker
     */
    int updateWorker(Worker worker) throws Exception;

    int resetPassword(Integer workerId) throws ServiceException;

    int updateWorkerStatus(Integer workerId);
}

